import request from '@/utils/request';
import { getCookie } from '@/utils/authority';

export async function queryAppJobList(params) {
  return request('/api/app/jobList', {
    params,
    headers: {
      'login-token': getCookie('tks'),
    },
  });
}
export async function operateInterface(params) {
  return request('/api/app/jobOper', {
    params,
    headers: {
      'login-token': getCookie('tks'),
    },
  });
}

export async function updateInterface(params) {
  return request('/api/app/jobAdd', {
    method: 'POST',
    headers: {
      'login-token': getCookie('tks'),
    },
    data: { ...params },
  });
}
